﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Orange.Lib.Effective
{
    class IndexUse
    {
        private List<int> lst = new List<int>();

        //索引同属性类似 可以为多维索引
        public virtual double this[int x, int y]
        {
            //get { return x * y; }
            get { return lst[x]; }
        }

        public void Add(int x)
        {
            lst.Add(x);
        }
    }
}
